<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<c:set var="dm" value="${param['cm'] }"/>
<c:if test="${empty dm}">
	<core:sysParam sysParamCode="DEFAULT_MENU" outPutToJsp="false" attributeName="defaultMenuId"/>
	<c:set var="dm" value="${defaultMenuId}"/>
</c:if>
<core:menu attributeName="sideBarMenus" parentId="${dm}"/>
<div class="accordion" fillSpace="sidebar">
	<c:forEach items="${sideBarMenus}" var="menu">
		<security:authorize ifAnyGranted="${menu.authorityCode}">
			<div class="accordionHeader">
				<h2>
					<span>Folder</span>${menu.name}
				</h2>
			</div>
			<div class="accordionContent">
				<ul class="tree treeFolder">
					<c:forEach items="${menu.childMenuList}" var="m1">
						<security:authorize ifAnyGranted="${m1.authorityCode}">
							<li>
								<a href="avascript:void(0)">${m1.name} </a>
								<ul>
									<c:forEach items="${m1.childMenuList}" var="m2">
										<security:authorize ifAnyGranted="${m2.authorityCode}">
											<li>
												<a href="${ctx}${m2.url}" target="navTab" rel="${m2.authorityCode}">${m2.name}</a>
											</li>
										</security:authorize>
									</c:forEach>
								</ul>
							</li>
						</security:authorize>
					</c:forEach>
				</ul>
			</div>
		</security:authorize>
	</c:forEach>
</div>